package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件上传记录对象 file_info
 * 
 * @author daming
 * @date 2023-02-26
 */
public class FileInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** # */
    private Long id;

    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 文件状态 */
    @Excel(name = "文件状态")
    private Long fileStatus;

    /** 新文件名 */
    @Excel(name = "新文件名")
    private String newFileName;

    /** 原始文件名 */
    @Excel(name = "原始文件名")
    private String originalFileName;

    /** 应用名 */
    @Excel(name = "应用名")
    private String appName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFileName(String fileName) 
    {
        this.fileName = fileName;
    }

    public String getFileName() 
    {
        return fileName;
    }
    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setFileStatus(Long fileStatus) 
    {
        this.fileStatus = fileStatus;
    }

    public Long getFileStatus() 
    {
        return fileStatus;
    }
    public void setNewFileName(String newFileName) 
    {
        this.newFileName = newFileName;
    }

    public String getNewFileName() 
    {
        return newFileName;
    }
    public void setOriginalFileName(String originalFileName) 
    {
        this.originalFileName = originalFileName;
    }

    public String getOriginalFileName() 
    {
        return originalFileName;
    }
    public void setAppName(String appName) 
    {
        this.appName = appName;
    }

    public String getAppName() 
    {
        return appName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fileName", getFileName())
            .append("filePath", getFilePath())
            .append("createdAt", getCreatedAt())
            .append("fileStatus", getFileStatus())
            .append("newFileName", getNewFileName())
            .append("originalFileName", getOriginalFileName())
            .append("appName", getAppName())
            .toString();
    }
}
